Skip to content

Conversation

@sigprogramming
Copy link
Collaborator

@sigprogramming sigprogramming commented Dec 28, 2025

内容

フレーズのシーケンスIDとAudioBufferをView(Vueコンポーネント)から取得できるようにします。
音声波形を表示する機能の実装のために行います。

関連 Issue

その他

@voicevox-preview-pages
Copy link

voicevox-preview-pages bot commented Dec 28, 2025

🚀 プレビュー用ページを作成しました 🚀

更新時点でのコミットハッシュ:e1830e5

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds the ability to retrieve phrase sequence IDs and AudioBuffer from Vue components to support audio waveform display functionality.

Key Changes:

  • Added phraseSequenceIds state to track the mapping between phrases and their sequence IDs
  • Introduced callback-based mechanism to update sequence ID mappings when sequences are created or deleted
  • Added GET_SEQUENCE_AUDIO_BUFFER getter to retrieve AudioBuffer from a sequence ID

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/store/type.ts Defines new state property phraseSequenceIds, mutations for managing phrase sequence IDs (SET_PHRASE_SEQUENCE_IDS, SET_PHRASE_SEQUENCE_ID, DELETE_PHRASE_SEQUENCE_ID), and getter GET_SEQUENCE_AUDIO_BUFFER
src/store/singing.ts Implements state initialization, callback-based updates to phraseSequenceIds during sequence lifecycle, mutations for managing phrase sequence IDs, and getter logic for retrieving AudioBuffer from sequences

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

ロジック周り見てみて問題なさそうなことを確認しました!
あとは @sevenc-nanashi さん的に実装意義に違和感なければOKそう。


@sigprogramming

音声波形を表示する機能の実装のため

これってissueとかってありましたっけ 👀
なかったらなかったでOKで、関連するissueとかPRあったら追えるように紐づけしておきたいな、くらいの意図です!

* フレーズの状態と再生されるシーケンスの状態を同期させる。
* 不要なシーケンスを削除し、不足しているシーケンスを生成する。
*/
const syncPhraseSequences = (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(ただのコメントです)

ちゃんとわかってないんですが、この辺の関数とか別ファイルに移しちゃっても良いかもですね!
src/store/singing.tsってなってる今のコードを
src/store/singing/index.tsにして、
src/store/singing/hoge.tsファイル作ってそっちに移す的なのとか。

もちろんやるなら別PRのが良さそう!

@sigprogramming
Copy link
Collaborator Author

@Hiroshiba
波形表示のissueは無いですが、音素タイミング編集のUIを実装中に波形表示が必要になってこのPRを作成したので、
ひとまず関連issueとして音素タイミング編集のissueを紐づけました。

@sigprogramming sigprogramming requested review from sevenc-nanashi and removed request for sevenc-nanashi January 5, 2026 17:11
@Hiroshiba
Copy link
Member

たぶん問題ないと思うのでマージします!

@Hiroshiba Hiroshiba enabled auto-merge January 10, 2026 23:41
@Hiroshiba Hiroshiba added this pull request to the merge queue Jan 10, 2026
Merged via the queue into VOICEVOX:main with commit 6ce6676 Jan 10, 2026
11 checks passed
@sigprogramming sigprogramming deleted the view_expose_phrase_seqid_audio branch January 11, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants